#!/bin/bash

if [ $1 -a -d $1 ]
then
	folder=$1
else
	folder="."
fi

find ${folder} -name "*~" -type f -print0 | xargs -0 rm -f

